import request from '@/utils/request'

// 查询计费信息列表
export function listCost(query) {
  return request({
    url: '/wifi/cost/list',
    method: 'get',
    params: query
  })
}

// 查询计费信息详细
export function getCost(costId) {
  return request({
    url: '/wifi/cost/' + costId,
    method: 'get'
  })
}

// 新增计费信息
export function addCost(data) {
  return request({
    url: '/wifi/cost',
    method: 'post',
    data: data
  })
}

// 修改计费信息
export function updateCost(data) {
  return request({
    url: '/wifi/cost',
    method: 'put',
    data: data
  })
}

// 删除计费信息
export function delCost(costId) {
  return request({
    url: '/wifi/cost/' + costId,
    method: 'delete'
  })
}
